// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import ElementUI from 'element-ui'
import VueResource from 'vue-resource'
import 'element-ui/lib/theme-chalk/index.css'

Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.use(VueResource)

//全局变量
Vue.prototype.setData = {
  // resUrl: '/api.php',
  // picUrl: '',
  // resUrl: 'http://192.168.1.109:8000/v1/beautiful',
  resUrl: '/v1/beautiful',

  sid: '12345qwe',
  timer: 1000 * 60 * 10,//1分钟
  page: 0,
  top: {top: 0, left: 0},
  indexTop:  {top: 0, left: 0},
}
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
